<!DOCTYPE html>
<html>
  <head>
    <title>other.html</title>
	
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->

  </head>
  
  <body>
	<form name="f1"></form>
	<form name="f2"></form>
	<form name="f3"></form>
	<script type="text/javascript">
	<!--
		/*
		var foo1 = "Hello";
		var foo2 = new String("Hello");
		document.write("<p>" + typeof foo1 +"</p>");
		document.write("<p>" + typeof foo2 +"</p>");
	
		alert(foo1);
		alert(foo2);
		*/
	
		
	
		/*
		document.write("this document contains:")
		document.write(document.forms.length+" forms.")
		*/
	
		/*
		var date = new Date();
		document.write(date + "<br/>");
		document.write(date.toString() + "<br/>");
		document.write(date.toLocaleString() + "<br/>");
		document.write(date.toLocaleDateString() + "<br/>");
		document.write(date.toLocaleTimeString() + "<br/>");
		*/
	
		/*
		document.write(Math.PI);
		*/
	
		/*
		var arr = new Array(3);
		arr[0] = "George";
		arr[1] = "John";
		arr[2] = "Thomas";
	
		document.write(arr.join(".") + "<br/>");
	
		for(var i in arr){
			document.write(arr[i] + "<br/>"); 
		}
		*/
	
		/*
		var o = new Object;
		o.name = "jert";
		document.write(o.name);
		delete o.name;
		document.write(o.name);
		*/
	
		/*
		function checkChange(){
			var username = document.getElementById("username");
			if(username.value=="admin" || username.value=="jert1988"){
				alert("恭喜你："+username.value);
			}else{
				alert("用户名不能为空！");
			}
		}
		*/
	
		/*
		//声明式静态函数
		function functionName1(){
			document.write("声明式静态函数");
			document.write("<br/>");
		}
		functionName1();
	
		//匿名函数
		var functionName2 = new Function("document.write('匿名函数');document.write('<br/>');");
		functionName2();
	
		(function(){
			document.write("匿名函数,闭包形式");
			document.write("<br/>");
		})();
	
		//函数直接量
		var functionName3 = function(){
			document.write("函数直接量");
			document.write("<br/>");
		}
		functionName3();
	
		//声明式静态函数-带参
		function functionName1(arg){
			document.write("声明式静态函数 - "+arg);
			document.write("<br/>");
		}
		functionName1("function");
	
		//匿名函数-带参
		var functionName2 = new Function("arg","document.write('匿名函数 - '+arg);document.write('<br/>');");
		functionName2("function");
	
		(function(arg){
			document.write("匿名函数,闭包形式 - "+arg);
			document.write("<br/>");
		})("function");
	
		//函数直接量-带参
		var functionName3 = function(arg){
			document.write("函数直接量 - "+arg);
			document.write("<br/>");
		}
		functionName3("function");
		*/
	
		/*
		function func(msg){
			document.write("Hello World - "+msg);
			document.write("<br/>");
		}
		func("函数的执行");
		var say = func;
		alert(say);
		alert(typeof say);
		say("函数的引用和执行");
		*/
	
	
	//-->
	</script>
	
	<!--a href="javascript:window.open('about:blank')">Click me</a>
	<a href="javascript:void(window.open('about:blank'))">Click me</a-->


	<!--form method="post" action="">
		<input type="text" name="username" id="username"/>
		<input type="submit" value="Submit" onClick="checkChange()"/>
	</form-->
 </body>
</html>
